
#ifndef __COMPAT_NETWORK_INETADDR_H__
#define __COMPAT_NETWORK_INETADDR_H__

#if defined(_WIN32) || defined(_WIN64)
#	include <winsock2.h>
#else
#	include <netinet/in.h>
#endif

#include "placeholder.h"

struct sockaddr_in ;

class InetAddr
{
public:
	InetAddr ( void ) ;
	InetAddr ( int family, const char * address, unsigned short port ) ;
	~InetAddr ( void ) ;

public:
	short				family ( void ) const ;
	const char *		address ( void ) const ;
	unsigned short		port ( void )  const ;

	const sockaddr *	sockaddr ( void ) const ;

private:
	//placeholder *		holder ;
	struct sockaddr *	sockaddr_ ;
};




#endif	// #ifndef __COMPAT_NETWORK_INETADDR_H__